package com.yusys.pattern.mode.decorator;

import java.util.ArrayList;
import java.util.List;

/**
 * 实现house接口的被修饰对象，后续装饰者对该对象进行修改装饰
 */
public class House2001 implements House {

    private List<String> goods = new ArrayList<String>();

    private List<String> peoples = new ArrayList<String>();


    /**
     * 往people集合中添加元素的行为代表业务操作
     */
    public void people() {
        peoples.add("father");
        peoples.add("mother");
        peoples.add("me");
        System.err.println("----------2001 people:"+peoples);
    }

    public void goods() {
        goods.add("电视");
        System.err.println("----------2001 goods:"+goods);

    }

    public List<String> getGoods() {
        return goods;
    }

    public List<String> getPeoples() {
        return peoples;
    }
}
